<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>system</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../../css/public.css" media="all">
    <link rel="stylesheet" href="../../lib/element-ui/lib/theme-chalk/index.css">

    <style>
        body {
            background-color: #ffffff;
            overflow: scroll!important;
        }
        .avatar-uploader .el-upload {
            border: 1px dashed #d9d9d9;
            border-radius: 6px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }
        .avatar-uploader .el-upload:hover {
            border-color: #409EFF;
        }
        .avatar-uploader-icon {
            font-size: 28px;
            color: #8c939d;
            width: 178px;
            height: 178px;
            line-height: 178px;
            text-align: center;
        }
        .avatar {
            /* width: 178px;
            height: 178px; */
            display: block;
        }
    </style>
</head>
<body>
<div id="appContainVue" class="layui-form layuimini-form edit-area-panel">
    <div class="layui-form-item">
        <div class="layui-col-md12">
            <label class="layui-form-label required">文件</label>
            <div class="layui-input-block">
                <el-upload
                        class="upload-demo"
                        ref="upload"
                        accept=".xls,.xlsx"
                        :data="paramsData"
                        :action="uploadUrl"
                        :on-preview="handlePreview"
                        :on-remove="handleRemove"
                        :on-success="handleAvatarSuccess"
                        :on-change="handleChange"
                        :before-upload="beforeAvatarUpload"
                        :file-list="fileList"
                        :limit="1"
                        :auto-upload="false">
                    <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
                    <div slot="tip" class="el-upload__tip">只能上传xls/xlsx文件，且不超过10M<a href="../../file/VSAT修理工程单模版.xlsx" target="_blank" style="color:blue;">【下载VSAT修理工程单模版】</a></div>
                </el-upload>

            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-col-md12">
            <label class="layui-form-label required">船舶</label>
            <div class="layui-input-block">
                <input type="hidden" v-model="paramsData.shipId" id="shipId" lay-verify="" lay-reqtext="请选择船舶" placeholder="请选择船舶"/>
                <input type="text" readonly v-model="paramsData.shipName" id="shipName" lay-verify="" lay-reqtext="请选择船舶" placeholder="请选择船舶" value="" class="layui-input">
            </div>
        </div>
    </div>

    <div class="win-submit-btn">
        <button class="layui-btn layui-btn-normal comfirm-submit-btn" style="width:50%;" lay-submit @click="submitUpload">导入</button>
    </div>
</div>
<script src="../../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="../../js/lay-config.js?v=1.0.4" charset="utf-8"></script>
<script src="../../lib/jquery-3.7.1/jquery-3.7.1.min.js" charset="utf-8"></script>
<script src="../../js/crypto-js.min.js"></script><script src="../../api/util.js" charset="utf-8"></script>
<script src="../../api/request.js" charset="utf-8"></script>
<!-- import Vue before Element -->
<script src="../../js/vue.js"></script>
<!-- import JavaScript -->
<script src="../../lib/element-ui/lib/index.js"></script>
<script src="../../js/custom/engineering-bills/import.js"></script>
</body>
</html>